﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Carrier.Services.aspx.cs"
    Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Quan tri he thong</title>
    <link rel="stylesheet" href="assets/css/reset.css" type="text/css" />
    <link rel="stylesheet" href="assets/css/styleexpress.css" type="text/css" />
    <link rel="stylesheet" href="assets/css/invalid.css" type="text/css" media="screen" />

    <script src="assets/js/Admin_002.js" type="text/javascript"></script>

    <script src="assets/js/Admin.js" type="text/javascript"></script>

    <script src="assets/js/jquery.js" type="text/javascript"></script>

    <script src="assets/js/jquery.validate.js" type="text/javascript"></script>

    <script type='text/javascript' src="assets/js/common.js"></script>

    <script type='text/javascript' src="assets/js/jquery.autocomplete.js"></script>

    <script type='text/javascript' src="assets/js/Ports.js"></script>

    <script type='text/javascript' src="assets/js/Carrs.js"></script>

    <link rel="stylesheet" type="text/css" href="assets/css/jquery.autocomplete.css" />
    <style type="text/css">
    .thheader{
    font-weight:bold;vertical-align:middle;text-align:center;
    font-size:11px;
    border:1px solid #ccc !important;
    line-height: 12px !important;
    }
    .tdboder{
    border:none !important;
    }
    .tdboder p{
    padding:1px !important;
    width:40px;
    border:1px solid #ccc !important;
    border-bottom:1px solid #ccc !important;
    }
    </style>

    <script type="text/javascript">
     function doDelete(ExtID,CustID,Action)
    {    
	    if (confirm('Bạn có thực sự muốn xóa?' ))
	    {       
	            var tid= getUrlVars()['tid'];    
                window.location.href = "CustomerRelation.Edit.aspx?tid="+tid+"&action="+Action+"&ID=" + CustID+"&ExtID="+ExtID;
        }
    }
     function doOpenCosting(ExtID,CustID)
    {    
	    var tid= getUrlVars()['tid'];                  
        url = "CostingDetail.aspx?tid="+tid+"&CustID=" + CustID+"&ExtID="+ExtID;
        window.open(url,'CostingDetail','width=800,height=500,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0');
    }
    function ReloadOpener()
    {
        //window.opener.location.href ='Carrier.Services.aspx;
        window.close();
    }
      $().ready(function() {	       
	        $('.clsPol').focus().autocomplete(ports);
	        $('.clsPod').focus().autocomplete(ports);	        
	        $('.clsCarr').focus().autocomplete(carrs);
	        $('#txtGoods').focus();
        });    		 
    </script>

    <style type="text/css">
    input[type=text], input[type=password], textarea, select
        {
        border: none;        
        }
        input[type=text]:focus, input[type=password]:focus, textarea:focus, select:focus {
        border-color: #4488cc;
        border-style: solid;
        border-width: 1px;
        margin: 0;
        background-color: #FCFFC5 ! important;

         }
        .row {
         border-bottom:1px solid #E9E9E9;
         }
    </style>
</head>
<body>
    <div id="body-wrapper">
        <div id="main-content1" style="padding: 0px; margin-left: 5px;">
            <div class="">
            </div>
            <h2>
                Quản lý quan hệ Khách hàng</h2>
            <div class="clear">
            </div>
            <div class="content-box">
                <form id="frmEdit" runat="server" method="post">
                    <!--Carrier Services-->
                    <div class="content-box-header">
                        <h3 style="cursor: s-resize;">
                            Giá offer cho khách hàng
                        </h3>
                        <div class="clear">
                        </div>
                    </div>
                    <fieldset>
                        <asp:Repeater ID="rptCarrServices" runat="server">
                            <ItemTemplate>
                                <tr onmouseover="this.style.background='#dbf0c9'" onmouseout="this.style.background='#ffffff'">
                                    <td>
                                        <%# DataBinder.Eval(Container.DataItem, "Index")%>
                                        <asp:HiddenField ID="ID" runat="server" Value='<%# DataBinder.Eval(Container.DataItem, "ID")%>'>
                                        </asp:HiddenField>
                                    </td>
                                    <td>
                                        <%# DataBinder.Eval(Container.DataItem, "Ser")%>
                                    </td>
                                    <td>
                                        <%# DataBinder.Eval(Container.DataItem, "Mon")%>
                                    </td>
                                    <td>
                                        <%# DataBinder.Eval(Container.DataItem, "Tue")%>
                                    </td>
                                    <td>
                                        <%# DataBinder.Eval(Container.DataItem, "web")%>
                                    </td>
                                    <td>
                                        <%# DataBinder.Eval(Container.DataItem, "Thu")%>
                                    </td>
                                    <td>
                                        <%# DataBinder.Eval(Container.DataItem, "Fri")%>
                                    </td>
                                    <td>
                                        <%# DataBinder.Eval(Container.DataItem, "Sat")%>
                                    </td>
                                    <td>
                                        <%# DataBinder.Eval(Container.DataItem, "Sun")%>
                                    </td>
                                    <td>
                                        <%# DataBinder.Eval(Container.DataItem, "TS1")%>
                                    </td>
                                    <td>
                                        <%# DataBinder.Eval(Container.DataItem, "TS2")%>
                                    </td>
                                    <td>
                                        <%# DataBinder.Eval(Container.DataItem, "LastUpdate")%>
                                    </td>
                                </tr>
                            </ItemTemplate>
                            <HeaderTemplate>
                                <table cellspacing="0" cellpadding="0" width="100%" border="0" class="adminlist">
                                    <thead>
                                        <tr>
                                            <th align="center" rowspan="2">
                                                Index</th>
                                            <th align="center" rowspan="2">
                                                SER</th>
                                            <th align="center" colspan="7">
                                                Carr run/ time (days)</th>
                                            <th align="center" colspan="2">
                                                Port</th>
                                            <th align="center" rowspan="2">
                                                Last Update</th>
                                        </tr>
                                        <tr style="background: #CCC;">
                                            <th align="center">
                                                Mon
                                            </th>
                                            <th align="center">
                                                Tue</th>
                                            <th>
                                                Web</th>
                                            <th align="center">
                                                thu</th>
                                            <th align="center">
                                                Fri</th>
                                            <th align="center">
                                                Sat</th>
                                            <th align="center">
                                                Sun</th>
                                            <th align="center">
                                                TS1</th>
                                            <th align="center">
                                                TS2</th>
                                        </tr>
                                    </thead>
                            </HeaderTemplate>
                            <FooterTemplate>
                                </TABLE>
                            </FooterTemplate>
                        </asp:Repeater>
                    </fieldset>
                    <div class="clear">
                    </div>
                    <div style="margin-top: 5px; width: 100%">
                        <asp:Button ID="btnSave" runat="server" Text="Update" class="button" OnClick="btnSave_Click" />
                        <input type="button" id="Exit" value="Exit" class="button" onclick="ReloadOpener();" />
                    </div>
                </form>
            </div>
            <!--div id="footer">
                &nbsp;</div-->
        </div>
    </div>
</body>
</html>
